package com.xncoding.easypoi.model;

import cn.afterturn.easypoi.excel.annotation.Excel;
import cn.afterturn.easypoi.handler.inter.IExcelDataModel;
import cn.afterturn.easypoi.handler.inter.IExcelModel;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;

public class AlarmObj01 implements IExcelModel, IExcelDataModel  , Serializable {

    @Excel(name = "FIXED_0",orderNum = "0",fixedIndex = 0,width = 20,isColumnHidden=false)
    @NotNull(message = "FIXED_0")
    @Pattern(regexp = "\\d{8}",message = "不正确的xx")
    private String FIXED_0;
    @Excel(name = "FIXED_1",orderNum = "1",fixedIndex = 1,width = 20,isColumnHidden=false)
    private String FIXED_1;

    @Excel(name = "FIXED_2",orderNum = "2",fixedIndex = 2,width = 20,isColumnHidden=false)
    private String FIXED_2;

    private String excelErrorMsg;

    private String excelRowNum;

    private int rowName;
    private String errorMsg;

    public String getFIXED_0() {
        return FIXED_0;
    }

    public void setFIXED_0(String FIXED_0) {
        this.FIXED_0 = FIXED_0;
    }

    public String getFIXED_1() {
        return FIXED_1;
    }

    public void setFIXED_1(String FIXED_1) {
        this.FIXED_1 = FIXED_1;
    }

    public String getFIXED_2() {
        return FIXED_2;
    }

    public void setFIXED_2(String FIXED_2) {
        this.FIXED_2 = FIXED_2;
    }

    public String getExcelErrorMsg() {
        return excelErrorMsg;
    }

    public void setExcelErrorMsg(String excelErrorMsg) {
        this.excelErrorMsg = excelErrorMsg;
    }

    public String getExcelRowNum() {
        return excelRowNum;
    }

    public void setExcelRowNum(String excelRowNum) {
        this.excelRowNum = excelRowNum;
    }

    public int getRowName() {
        return rowName;
    }

    public void setRowName(int rowName) {
//        this.rowName = rowName;
    }

    @Override
    public String getErrorMsg() {
        return errorMsg;
    }

    @Override
    public void setErrorMsg(String errorMsg) {
//        this.errorMsg = errorMsg;
        this.excelErrorMsg = errorMsg;
    }

    @Override
    public Integer getRowNum() {
        return rowName;
    }

    @Override
    public void setRowNum(Integer rowName) {
//        this.rowName=rowName;
        this.excelRowNum = rowName +1+"";
    }
}


